﻿using AutoMapper;
using BCDto.Common.SystemConfiguration;
using BCDto.TMS.Driver.SystemConfiguration;
using BCEntity.Common.SystemConfiguration;

namespace BCService.MapperProfiles.Common.SystemConfiguration
{
    public class SystemConfigurationProfile : Profile
    {
        public SystemConfigurationProfile()
        {

            //系统配置
            CreateMap<SystemConfigurationDto, SystemConfigurationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SystemConfigurationRequestDto, SystemConfigurationPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SystemConfigurationRequestDto, SystemConfigurationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SystemConfigurationPutDto, SystemConfigurationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SystemConfigurationEntity, SystemConfigurationDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SystemConfigurationEntity, DriverAppSystemConfigurationDto>().IgnoreAllPropertiesWithAnInaccessibleSetter(); 

        }
    }
}
